<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息</title>
    <link rel="stylesheet" href="./css/user.css">
</head>
<body>
<div class="search-waper">
    <input type="text" class="search"><button id="btn">搜索</button>
</div>
<table align="center">
    
    <tr>
        <th>序号</th>
        <th>名字</th>
        <th>头像</th>
        <th>操作</th>
    </tr>
    <tbody id="warpper">
    <?php
        require_once './control/config.php';
        $sql="select * from login";
        $result= mysqli_query($conn,$sql);
        while ($row = mysqli_fetch_array($result)){
        $id=$row[0];
        ?>
        <tr>
            <td class="ys content"><?php echo $row[0];?></td>
            <td class="ys content"><?php echo $row[1];?></td>
            <td class="content"><img width="80" height="80" src="<?php echo $row[2];?>"/></td>
            <td class="content">
                <a href="./control/del.php?id=<?=$id?>">删除</a>
                <a href="edit.php?id=<?=$id?>">修改</a>
                <a href="add.php">添加</a>
            </td>
        </tr>
    <?php
    }
    ?>
    </tbody>
</table>
<script src="./js/ajax.js"></script>
    <script src="./js/search.js"></script>
</body>
</html>